-
Notifications
You must be signed in to change notification settings - Fork 226
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Documentation: Add README file about how artifacts version is set in the pipeline #9148
Conversation
b63a7cb
to
e0e675e
Compare
Quality Gate passedIssues Measures |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We probably need to pair to build a basic outline first.
The story describes individual details, but I don't explain the overal picture, like what are the entrypoints.
23b02ec
to
a4b1802
Compare
502af83
to
6a1a3c0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Round 2
0bf4c9e
to
c892851
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
scripts/version/README.md
Outdated
|
||
To set the version locally we run the [`set-version.ps1`](./set-version.ps1) script, which uses the `mvn set:version` command to update the java plugin's semantic version and the `ChangeVersion.proj` to update the analyzers' semantic version. Later, the `ChangeVersion.proj` and the `mvn set:version` (via the [`update-maven-version-steps.yml`](https://dev.azure.com/sonarsource/DotNetTeam%20Project/_git/pipelines-yaml-templates?path=/update-maven-version-steps.yml&version=GBmaster&line=20&lineEnd=21&lineStartColumn=1&lineEndColumn=1&lineStyle=plain&_a=contents)) are called in the pipeline to update the build version of the artifacts. | ||
|
||
## 1. How version is set in *.jar artifacts |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't like the numbers. They are hard to maintain to keep them consistent and we don't really need them.
## 1. How version is set in *.jar artifacts | |
## How version is set in *.jar artifacts |
scripts/version/README.md
Outdated
|
||
## 3. Notes | ||
|
||
What is important to keep is that the versions in the root pom.xml, and the [MainVersion field](https://github.com/SonarSource/sonar-dotnet/blob/master/scripts/version/Version.props#L3) in the `Version.props` must |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is important to keep is that the versions in the root pom.xml, and the [MainVersion field](https://github.com/SonarSource/sonar-dotnet/blob/master/scripts/version/Version.props#L3) in the `Version.props` must | |
What is important to keep is that the versions in the root pom.xml, and the [MainVersion](https://github.com/SonarSource/sonar-dotnet/blob/master/scripts/version/Version.props#L3) field in the `Version.props` must |
scripts/version/README.md
Outdated
1. [SonarAnalyzer.CSharp.Styling.nuspec](../../analyzers/packaging/SonarAnalyzer.CSharp.Styling.nuspec) | ||
1. [AssemblyInfo.Shared.cs](../../analyzers/src/AssemblyInfo.Shared.cs) | ||
|
||
However, during the sonar-dotnet pipeline run, the files 2-6 above, have any reference to the semantic version replaced by the value in the [MainVersion field](https://github.com/SonarSource/sonar-dotnet/blob/a998f32eac72c7b6b4562935ffb8d423c6ebf936/scripts/version/Version.props#L3) of the `Version.props` file. This happens during the build of the [`ChangeVersion.proj`](./ChangeVersion.proj) that is [executed in the pipeline](https://github.com/SonarSource/sonar-dotnet/blob/master/azure-pipelines.yml#L91). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The pipeline #L91 needs a fixed commit. Otherwise it will go out of sync with very next pipeline change
scripts/version/README.md
Outdated
1. [SonarAnalyzer.CSharp.Styling.nuspec](../../analyzers/packaging/SonarAnalyzer.CSharp.Styling.nuspec) | ||
1. [AssemblyInfo.Shared.cs](../../analyzers/src/AssemblyInfo.Shared.cs) | ||
|
||
However, during the sonar-dotnet pipeline run, the files 2-6 above, have any reference to the semantic version replaced by the value in the [MainVersion field](https://github.com/SonarSource/sonar-dotnet/blob/a998f32eac72c7b6b4562935ffb8d423c6ebf936/scripts/version/Version.props#L3) of the `Version.props` file. This happens during the build of the [`ChangeVersion.proj`](./ChangeVersion.proj) that is [executed in the pipeline](https://github.com/SonarSource/sonar-dotnet/blob/master/azure-pipelines.yml#L91). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
However, during the sonar-dotnet pipeline run, the files 2-6 above, have any reference to the semantic version replaced by the value in the [MainVersion field](https://github.com/SonarSource/sonar-dotnet/blob/a998f32eac72c7b6b4562935ffb8d423c6ebf936/scripts/version/Version.props#L3) of the `Version.props` file. This happens during the build of the [`ChangeVersion.proj`](./ChangeVersion.proj) that is [executed in the pipeline](https://github.com/SonarSource/sonar-dotnet/blob/master/azure-pipelines.yml#L91). | |
However, during the sonar-dotnet pipeline run, the files 2-6 above, have any reference to the semantic version replaced by the value in the [MainVersion](https://github.com/SonarSource/sonar-dotnet/blob/a998f32eac72c7b6b4562935ffb8d423c6ebf936/scripts/version/Version.props#L3) field of the `Version.props` file. This happens during the build of the [`ChangeVersion.proj`](./ChangeVersion.proj) that is [executed in the pipeline](https://github.com/SonarSource/sonar-dotnet/blob/master/azure-pipelines.yml#L91). |
29e39db
to
e4ab709
Compare
Quality Gate passed for 'Sonar .NET Java Plugin'Issues Measures |
Quality Gate passed for 'SonarAnalyzer for .NET'Issues Measures |
No description provided.